package com.wind.trademark.chart.vo;

import java.util.List;

public class BarParam {
	private String name;
	private float value;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public float getValue() {
		return value;
	}
	public void setValue(float value) {
		this.value = value;
	}
	public BarParam(String name, float value) {
		super();
		this.name = name;
		this.value = value;
	}
	public BarParam() {
		super();
	}
	public static Object[][] translateBarParamList2twoDimensionalArray(List<BarParam> barParamList){
		Object[][] twoDimensionalArray=new Object[barParamList.size()][2];
		for (int i = 0; i < barParamList.size(); i++) {
			twoDimensionalArray[i][0]=barParamList.get(i).getName();
			twoDimensionalArray[i][1]=Float.valueOf(barParamList.get(i).getValue());
		}
		return twoDimensionalArray;
	}
	
}
